<U:PRJVK x:Class="WPFExcelReport.TSTEK05"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls" 
                    xmlns:WG="clr-namespace:WPFExcelReport;assembly=TWGBST" 
                    xmlns:WDK="clr-namespace:WPFExcelReport;assembly=TWDECK"  
                    xmlns:EKK="clr-namespace:WPFExcelReport;assembly=TEKKOPF" 
                    xmlns:EKP="clr-namespace:WPFExcelReport;assembly=TEKPOS" 
                    xmlns:VR="clr-namespace:WPFExcelReport;assembly=TVRKOPF"  
                    xmlns:VRP="clr-namespace:WPFExcelReport;assembly=TVRPOS"
                     xmlns:ZB="clr-namespace:WPFExcelReport;assembly=TVKZUAB"   
                    xmlns:ZA="clr-namespace:WPFExcelReport;assembly=TZABED"  
                    xmlns:LS="clr-namespace:WPFExcelReport;assembly=TLIEFDAT" 
                     xmlns:WS="clr-namespace:WPFExcelReport;assembly=TWASTAMM"  
                    xmlns:U="clr-namespace:WPFExcelReport;assembly=ITXUI"
                    xmlns:CWBEW="clr-namespace:WPFExcelReport;assembly=TICC_WBBEW" 
                     xmlns:TXT="clr-namespace:WPFExcelReport;assembly=TTXTIND"   
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"                    
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"  
                     xmlns:LD="clr-namespace:WPFExcelReport;assembly=TLIEFKO"  
                    xmlns:me="clr-namespace:WPFExcelReport"
                    FontSize="12"
                    Name="TV"
                    Loaded="Window_Loaded"
>
    <U:PRJVK.Resources>
        <ucd:BoolToVisibilityConverter x:Key="bv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </U:PRJVK.Resources>
    <DockPanel>
        <ex:AniScrollViewer DockPanel.Dock="Right" 
                    MaxWidth="400"
                    Visibility="{Binding IsShowRight,ElementName=TV,Converter={StaticResource bv}}" >
            <StackPanel>
                <CWBEW:TEKWB Grid.Column="2" 
                               IsTemp="False"
                              IsShowEKGB="{Binding IsShowEKGB,ElementName=cEKP}"
                              ORDERNUM="{Binding AUF,ElementName=cEKP}" />
                <StackPanel>

                    <StackPanel Visibility="Collapsed">
                        <VR:TVR04  Name="cVRK"
                        IsAuto="True"
                        KEY="{Binding RENR,ElementName=cEK}"
                        VKK="{Binding AUF,ElementName=cEK}"
                        ZAHLBED="{Binding ZAHLBED,ElementName=cEK}"
                        IsSaved="{Binding IsSaved,ElementName=cEKP}"
                        IsEdit="{Binding IsEdit,ElementName=cEKP}"/>

                        <VRP:TEKVR05 Grid.Row="1" ARTST="F" 
                              IsAuto="False"
                               IsFilterByVKP="True"
                               MaxHeight="300"
                               RENR="{Binding KEY,ElementName=cVRK}" 
                               dwZB="{Binding dwZB,ElementName=cZBP}"  
                               dwEKP="{Binding dwEKP,ElementName=cEKP}"  
                                  />
                    </StackPanel>
                </StackPanel>

            </StackPanel>
        </ex:AniScrollViewer>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition   Height="Auto" />
                <RowDefinition   Height="Auto" />
                <RowDefinition Height="1*"/>
                <RowDefinition   Height="Auto" />
                <RowDefinition   Height="Auto" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"></ColumnDefinition>
                <ColumnDefinition Width="1*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <EKK:TEKKOPF x:Name="cEK" Grid.Row="0"  Grid.Column="0" Grid.ColumnSpan="2"
                              IsCanDelete="{Binding IsCanDelete,ElementName=TV}" 
                              IsCanNew="{Binding IsCanNew,ElementName=TV}" 
                              ScopeManage="{Binding ScopeManage,ElementName=TV}" 
                             KRS="{Binding KRS,ElementName=TV}"  
                             LFD="{Binding LFD,ElementName=TV}"  
                            ORDERNUM="{Binding AUF,ElementName=cEKP}"  
                             MinWidth="200" />
            <EKK:TEK04   Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2"
                      IsChgLS="False"
                      x:Name="cEKK"
                      IsEdit="{Binding IsEdit,ElementName=cEK}" 
                      IsSaved="{Binding IsSaved,ElementName=cEK}" 
                      ORDERNUM="{Binding AUF,ElementName=cEK}"
                      WAEHRSL="{Binding WAEHRSL,ElementName=cEK}"
                      KURS="{Binding KURS,ElementName=cEK}"
                      LIEFNR="{Binding LIEFNR,ElementName=cEK}"
                      />
            <U:TTSTEKP Grid.Row="2"  Grid.Column="0"  Grid.ColumnSpan="2" Name="cEKP" 
                            PRTYPE = "TSTVK04"
                            LO="01" LB="CP" LP="A       "
                             IsAuto="True" 
                             LIEFNR="{Binding LIEFNR,ElementName=cEKK}"
                             IsCanDelete="{Binding IsCanDelete,ElementName=TV}" 
                             IsCanNew="{Binding IsCanNew,ElementName=TV}"  
                             IsShowEKGB="{Binding IsShowRight,ElementName=TV}"
                             ARTST="F" IsPrice="True"  
                             EXAUF="{Binding AUF,ElementName=cEKK}" 
                              WAEHRSL="{Binding WAEHRSL,ElementName=cEKK}"
                             KURS="{Binding KURS,ElementName=cEKK}"
                             IsEdit="{Binding IsEdit,ElementName=cEKK}" 
                             IsSaved="{Binding IsSaved,ElementName=cEKK}" 
                             MinWidth="200" MinHeight="50" />

            <Expander Grid.Row="3" Grid.Column="0" ExpandDirection="Down">
                <Expander.Header>
                    <WrapPanel>
                        <TextBlock Text="{Binding Source={Localization:Translate Word=供应商}}"></TextBlock>
                        <TextBlock Text="{Binding INFO,ElementName=cLS}"/>
                    </WrapPanel>
                </Expander.Header>
                <StackPanel>
                    <LS:TLS03 Name="cLS"
                            ORDERNUM="{Binding LIEFNR,ElementName=cEKK}"  
                            />
                    <LD:TLS06 Name="cLS06" Grid.Column="1"
                      ORDERNUM="{Binding LSKOND,ElementName=cEKK}" />
                </StackPanel>
            </Expander>
            <Expander Grid.Row="3" Grid.Column="1" ExpandDirection="Down">
                <Expander.Header>
                    <WrapPanel>
                        <TextBlock Text="{Binding Source={Localization:Translate Word=附加费}}"></TextBlock>
                        <TextBlock Text="{Binding INFO,ElementName=cZBP}"/>
                    </WrapPanel>
                </Expander.Header>
                <ZB:TVKZUAB Name="cZBP" Grid.Row="3" Grid.Column="0"    Margin="10" IsAuto="True"  MaxHeight="300" 
                            VKZSA="EK"
                            EXCOM="{Binding MYCOM,ElementName=cWS}"
                             ORDERNUM="{Binding AUF,ElementName=cEKP}"  />
            </Expander>
            <Expander Grid.Row="4" Grid.Column="0" ExpandDirection="Down">
                <Expander.Header>
                    <WrapPanel>
                        <TextBlock Text="{Binding Source={Localization:Translate Word=发票}}"></TextBlock>
                        <TextBlock Text="{Binding INFO,ElementName=cVR}"/>
                    </WrapPanel>
                </Expander.Header>
                <VRP:TVKKVR05 Grid.Row="1" Name="cVR"
                     VKK="{Binding AUF,ElementName=cEKK}" 
                   IsAuto="False"  />
            </Expander>
            <Expander Grid.Row="4" Grid.Column="1" ExpandDirection="Down">
                <Expander.Header>
                    <WrapPanel>
                        <TextBlock Text="{Binding Source={Localization:Translate Word=付款方式}}"></TextBlock>
                        <TextBlock Text="{Binding INFO,ElementName=cZA}"/>
                    </WrapPanel>
                </Expander.Header>
                <ZA:TZA03 Grid.Column="2"  Name="cZA"
                              ORDERNUM="{Binding ZAHLBED,ElementName=cEKK}" />
            </Expander>
        </Grid>
    </DockPanel>
</U:PRJVK>
    
